/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package client;

/**
 *
 * @author scriptoff
 */
public class CodeCommande {

    // Client -> Serveur

    public static final short COMMANDE_INSCRIPTION_CHAT = 0 ;
    public static final short COMMANDE_CONNECTION_CHAT = 1 ;
    public static final short COMMANDE_DECONNECTION_CHAT = 2 ;
    public static final short COMMANDE_RECUPERER_LISTE_CANAUX =    3 ;
    public static final short COMMANDE_CREER_REJOINDRE_CANAL = 4 ;
    public static final short COMMANDE_QUITTER_CANAL = 5 ;
    public static final short COMMANDE_MODIFIER_PASSWORD_CANAL = 6 ;
    public static final short COMMANDE_ENVOYER_MESSAGE = 7 ;
    // commande 8 envoyer fichier optionelle 
    public static final short COMMANDE_BANNIR_UTILISATEUR_CANAL = 9 ;
    public static final short COMMANDE_DEBANNIR_UTILISATEUR_CANAL = 10 ;
    public static final short COMMANDE_MODIFIER_PARAMETRES_PERSONNELS = 11 ;
    public static final short COMMANDE_NOUVEAU_SUPERUTILISATEUR = 12 ;
    public static final short COMMANDE_SUPPRIMER_SUPERUTILISATEUR = 13 ;
    public static final short COMMANDE_EXPULSER_UTILISATEUR_CANAL = 14 ;
    public static final short COMMANDE_SUPPRIMER_CANAL = 15 ;
    public static final short COMMANDE_DIALOGUER = 16 ;


    // Serveur -> Client Erreur 

    public static final short COMMANDE_ERREUR_INSCRIPTION = -1 ;
    public static final short COMMANDE_ERREUR_CONNECTION = -2 ;
    public static final short COMMANDE_ERREUR_PASSWORD = -3 ;
    public static final short COMMANDE_ERREUR_DROITS_INSUFFISANTS_CANAL = -5 ;
    public static final short COMMANDE_ERREUR_UTILISATEUR_BANNI = -6 ;
    public static final short COMMANDE_ERREUR_UTILISATEUR_EXPULSER = -7 ;

    // Serveur -> Client Commande
    public static final short COMMANDE_RAFFRAICHIR_CANAL = 100 ;
    public static final short COMMANDE_ENVOYER_LISTE_CANAUX = 102 ;
    public static final short COMMANDE_INSCRIPTION_OK = 103 ;
    public static final short COMMANDE_CONNECTION_OK = 104 ;
    public static final short COMMANDE_CANAL_SUPPRIME = 105 ;
    public static final short COMMANDE_ERREUR_CHANGER_PASSWORD_CANAL = 106 ;
    public static final short COMMANDE_CHANGER_PASSWORD_OK = 107 ;
    public static final short COMMANDE_BANNIR_UTILISATEUR_OK = 108 ;
    public static final short COMMANDE_MODIFIER_PASSWORD_CANAL_OK = 109 ;
    public static final short COMMANDE_DEBANNIR_UTILISATEUR_OK = 110 ;
    public static final short COMMANDE_MODIFIER_PARAMETRES_PERSONNELS_OK = 111 ;
    public static final short COMMANDE_RAFFRAICHIR_MESSAGE_CANAL = 112 ;
    public static final short COMMANDE_RAFFRAICHIR_MESSAGE_UTILISATEUR = 113 ;



}
